<?php

use Phinx\Migration\AbstractMigration;

class AddColumnParamInPostTable extends AbstractMigration
{
    public function up()
    {
        $this->table("post")->addColumn("param", 'json', [
            'null' => true,
            'comment' => '额外参数'
        ])->save();
    }

    public function down()
    {
        $this->table("post")->removeColumn("param")->save();
    }
}
